﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Antix.Data;
using Antix.Data.Objects;

namespace Antix.ObjectsToDatabase.Test.CatalogueClasses
{
    [DataTable("CompanyOffice")]
    public class CompanyOffice : Base.Address
    {
        /// <summary>
        /// <para>Company whos office this is</para>
        /// <para>When a office is deleted, so are all the offices</para>
        /// </summary>
        [DataColumn(Name = "Company", DeleteAction = DeleteActionEnum.CascadeFrom)]
        protected Company _Company;

        /// <summary>
        /// <para>Office name, eg Head Office</para>
        /// </summary>
        [DataColumn(Name = "Name", Length = 25, AllowNull = false)]
        protected string _Name;
    }
}